import http from '../http'

interface loginParams {
  username: string
  password: string
}
export default {
  // 登录接口
  login(params: loginParams) {
    return http.post('/login', params)
  },

  // mock登录接口
  loginMock(params: loginParams) {
    return http.post('/mockjs/login', params)
  },
}
